package wnco.dao;


import wnco.dto.IRlat;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IRlatDao extends Neo4jRepository<IRlat, Long> {
    @Query("match (d1:INode)-[r:IRlat]-(d2:INode) where d1.name=$name  return d1,r,d2")
    List<IRlat> getRltByname(String name);



}
